import java.util.Comparator;
import java.util.PriorityQueue;

public class Test1  {
    public static void main(String[] args) {
        int[] arr = {22 , 13 , 9 , 24 , 5 , 18 , 30 , 11 };
        MyPriorityQueue myPriorityQueue = new MyPriorityQueue();
        myPriorityQueue.createHeap(arr);
        myPriorityQueue.push(21);
        myPriorityQueue.display();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
        myPriorityQueue.pollHeap();
         myPriorityQueue.display();
    }
}
